﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FlightClient.NewService;

namespace FlightClient
{
    
    public partial class Form2 : Form
    {
        static NewService.IFlightService flightServiceObj = new NewService.FlightServiceClient();
        Connection conn;
        int seats;
        public Form2(Connection conn, int no)
        {
            InitializeComponent();
            this.conn = conn;
            this.seats = no;
        }

        private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void bookButton_Click(object sender, EventArgs e)
        {
            

            flightServiceObj.Book(conn, seats, textBox1.Text, textBox3.Text, textBox4.Text, textBox6.Text, textBox2.Text, textBox5.Text, textBox7.Text);
        }
    }
}
